package com.meixiang.entity.moments;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

/**
 * 作者：黑哥 on 2016/5/30 10:53
 */
public class PostDetailsList implements Parcelable {
    private String laudNumber;
    private String commentNumber;
    private String totalRows;
    private String pageNo;
    private String pageSize;
    private String commentId;
    private String memberAvatar;
    private String memberName;
    private String comment;
    private String[] commentImages;
    private String appearTime;
    private List<PostDetailsItemBean> mPostDetailsItemBeen;
    /**
     * createTime : 2天前
     * myLaud : 1
     * myConcern : 0
     * memberId : 203
     * totalPage : 1
     * commentList : [{"commentId":"301","memberId":"184","memberName":"18512129262","memberAvatar":"http://www.mxaest.com:8080/upload/img/avatar/01.jpg","answerName":"","comment":"DADADDSA","createTime":"2天前"},{"commentId":"300","memberId":"184","memberName":"18512129262","memberAvatar":"http://www.mxaest.com:8080/upload/img/avatar/01.jpg","answerName":"","comment":"ADSDADA","createTime":"2天前"},{"commentId":"299","memberId":"184","memberName":"18512129262","memberAvatar":"http://www.mxaest.com:8080/upload/img/avatar/01.jpg","answerName":"","comment":"ASDSADADAS","createTime":"2天前"},{"commentId":"298","memberId":"203","memberName":"15026534657","memberAvatar":"http://www.mxaest.com:8080/upload/img/avatar/01.jpg","answerName":"","comment":"我来回答，22222222","createTime":"2天前"},{"commentId":"297","memberId":"203","memberName":"15026534657","memberAvatar":"http://www.mxaest.com:8080/upload/img/avatar/01.jpg","answerName":"","comment":"什么问题，你说\u2026\u2026","createTime":"2天前"}]
     */

    private String createTime;
    private String myLaud;
    private String myConcern;
    private String memberId;
    private String totalPage;

    public PostDetailsList(String appearTime, String comment, String commentId, String[] commentImages, String commentNumber, String laudNumber, String memberAvatar, String memberName, List<PostDetailsItemBean> postDetailsItemBeen, String pageNo, String pageSize, String totalRows) {
        this.appearTime = appearTime;
        this.comment = comment;
        this.commentId = commentId;
        this.commentImages = commentImages;
        this.commentNumber = commentNumber;
        this.laudNumber = laudNumber;
        this.memberAvatar = memberAvatar;
        this.memberName = memberName;
        mPostDetailsItemBeen = postDetailsItemBeen;
        this.pageNo = pageNo;
        this.pageSize = pageSize;
        this.totalRows = totalRows;
    }

    public String getAppearTime() {
        return appearTime;
    }

    public void setAppearTime(String appearTime) {
        this.appearTime = appearTime;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getCommentId() {
        return commentId;
    }

    public void setCommentId(String commentId) {
        this.commentId = commentId;
    }

    public String[] getCommentImages() {
        return commentImages;
    }

    public void setCommentImages(String[] commentImages) {
        this.commentImages = commentImages;
    }

    public String getCommentNumber() {
        return commentNumber;
    }

    public void setCommentNumber(String commentNumber) {
        this.commentNumber = commentNumber;
    }

    public String getLaudNumber() {
        return laudNumber;
    }

    public void setLaudNumber(String laudNumber) {
        this.laudNumber = laudNumber;
    }

    public String getMemberAvatar() {
        return memberAvatar;
    }

    public void setMemberAvatar(String memberAvatar) {
        this.memberAvatar = memberAvatar;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public List<PostDetailsItemBean> getPostDetailsItemBeen() {
        return mPostDetailsItemBeen;
    }

    public void setPostDetailsItemBeen(List<PostDetailsItemBean> postDetailsItemBeen) {
        mPostDetailsItemBeen = postDetailsItemBeen;
    }

    public String getPageNo() {
        return pageNo;
    }

    public void setPageNo(String pageNo) {
        this.pageNo = pageNo;
    }

    public String getPageSize() {
        return pageSize;
    }

    public void setPageSize(String pageSize) {
        this.pageSize = pageSize;
    }

    public String getTotalRows() {
        return totalRows;
    }

    public void setTotalRows(String totalRows) {
        this.totalRows = totalRows;
    }

    public PostDetailsList() {
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getMyLaud() {
        return myLaud;
    }

    public void setMyLaud(String myLaud) {
        this.myLaud = myLaud;
    }

    public String getMyConcern() {
        return myConcern;
    }

    public void setMyConcern(String myConcern) {
        this.myConcern = myConcern;
    }

    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    public String getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(String totalPage) {
        this.totalPage = totalPage;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.laudNumber);
        dest.writeString(this.commentNumber);
        dest.writeString(this.totalRows);
        dest.writeString(this.pageNo);
        dest.writeString(this.pageSize);
        dest.writeString(this.commentId);
        dest.writeString(this.memberAvatar);
        dest.writeString(this.memberName);
        dest.writeString(this.comment);
        dest.writeStringArray(this.commentImages);
        dest.writeString(this.appearTime);
        dest.writeList(this.mPostDetailsItemBeen);
        dest.writeString(this.createTime);
        dest.writeString(this.myLaud);
        dest.writeString(this.myConcern);
        dest.writeString(this.memberId);
        dest.writeString(this.totalPage);
    }

    protected PostDetailsList(Parcel in) {
        this.laudNumber = in.readString();
        this.commentNumber = in.readString();
        this.totalRows = in.readString();
        this.pageNo = in.readString();
        this.pageSize = in.readString();
        this.commentId = in.readString();
        this.memberAvatar = in.readString();
        this.memberName = in.readString();
        this.comment = in.readString();
        this.commentImages = in.createStringArray();
        this.appearTime = in.readString();
        this.mPostDetailsItemBeen = new ArrayList<PostDetailsItemBean>();
        in.readList(this.mPostDetailsItemBeen, PostDetailsItemBean.class.getClassLoader());
        this.createTime = in.readString();
        this.myLaud = in.readString();
        this.myConcern = in.readString();
        this.memberId = in.readString();
        this.totalPage = in.readString();
    }

    public static final Creator<PostDetailsList> CREATOR = new Creator<PostDetailsList>() {
        @Override
        public PostDetailsList createFromParcel(Parcel source) {
            return new PostDetailsList(source);
        }

        @Override
        public PostDetailsList[] newArray(int size) {
            return new PostDetailsList[size];
        }
    };
}
